//
//  GGQQaaViewController.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "GGQQaaViewController.h"

@interface GGQQaaViewController () <
UITableViewDataSource,
UITableViewDelegate
>

/// dsafadsfg数据源
@property (nonatomic, strong) NSMutableArray *data;

/// sdagdgerg
@property (nonatomic, strong) UITableView *dsafadsfg;

@end

@implementation GGQQaaViewController

#pragma mark - # Delegate
//MARK: UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return self.data.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
}

#pragma mark - # Life Cycle
- (void)loadView {
	[super loadView];
	[self.view addSubview:self.dsafadsfg];
}

- (void)viewDidLoad {
	[super viewDidLoad];
}

#pragma mark - # Getter
- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UITableView *)dsafadsfg {
	if (!_dsafadsfg) {
		_dsafadsfg = [[UITableView alloc] init];
		[_dsafadsfg.layer setMasksToBounds:YES];
		[_dsafadsfg.layer setBorderWidth:1];
		[_dsafadsfg.layer setBorderColor:[UIColor whiteColor].CGColor];
		[_dsafadsfg setMultipleTouchEnabled:YES];
		[_dsafadsfg setClipsToBounds:YES];
		[_dsafadsfg setPagingEnabled:YES];
		[_dsafadsfg setShowsVerticalScrollIndicator:YES];
		[_dsafadsfg setShowsHorizontalScrollIndicator:YES];
		[_dsafadsfg setDelegate:self];
		[_dsafadsfg setRowHeight:3];
		[_dsafadsfg setSectionHeaderHeight:1];
		[_dsafadsfg setSectionFooterHeight:2];
		[_dsafadsfg setSeparatorInset:UIEdgeInsetsMake(4, 0, 0, 0)];
		[_dsafadsfg setEditing:YES];
		[_dsafadsfg setDataSource:self];
	}
	return _dsafadsfg;
}

@end
